﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DCT.CodeBox.BMS.Code.DataModels;

namespace DCT.CodeBox.BMS.Code.Datas.Interfaces
{
    /// <summary>
    ///  用户数据操作
    /// </summary>
    public interface IUserData : ICommonData<UserFullDataModel, string>
    {
        /// <summary>
        /// 查询一个用户数据[一般用于登录]
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        UserDataModel QueryUserData(string userName);

        /// <summary>
        /// 更新密码
        /// </summary>
        /// <param name="user"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        DataResult UpdatePassword(string user, string password);
    }
}
